home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / faq / comp / objectiv / answers next >
Internet Message Format  |  1994-04-17  |  29KB

  1. Path: bloom-beacon.mit.edu!hookup!europa.eng.gtefsd.com!howland.reston.ans.net!EU.net!sun4nl!news.nic.surfnet.nl!tuegate.tue.nl!krait.es.ele.tue.nl!tiggr
  2. From: tiggr@es.ele.tue.nl (Tiggr)
  3. Newsgroups: comp.lang.objective-c,comp.answers,news.answers
  4. Subject: comp.lang.objective-c FAQ, part 1/3: Answers
  5. Supersedes: <answers_764338065@es.ele.tue.nl>
  6. Followup-To: comp.lang.objective-c
  7. Date: 17 Apr 1994 16:04:29 GMT
  8. Organization: Eindhoven University of Technology, the Netherlands
  9. Lines: 666
  10. Approved: news-answers-request@mit.edu
  11. Expires: 27 May 1994 16:04:28 GMT
  12. Message-ID: <answers_766598668@es.ele.tue.nl>
  13. Reply-To: tiggr@es.ele.tue.nl (Tiggr)
  14. NNTP-Posting-Host: krait.es.ele.tue.nl
  15. Summary: This first part of the comp.lang.objective-c FAQ postings
  16.     tries to answer all your Objective-C questions.
  17. Originator: tiggr@krait.es.ele.tue.nl
  18. Xref: bloom-beacon.mit.edu comp.lang.objective-c:1450 comp.answers:4940 news.answers:18175
  19.  
  20. Archive-name: Objective-C/answers
  21. Version: $Id: answers,v 2.11 1994/01/26 15:21:25 tiggr Exp $
  22.  
  23.  
  24.                  Answers to
  25.  
  26.              FREQUENTLY ASKED QUESTIONS
  27.  
  28.                concerning Objective-C
  29.  
  30.  
  31. This is the first in a series of three informational postings concerning
  32. comp.lang.objective-c.  This first part answers FAQs; the second part lists
  33. available class libraries and the third part is a simple sample Objective-C
  34. program.
  35.  
  36. This posting answers the following questions:
  37.  
  38.  1   What is Objective-C?
  39.  2   What is the difference between Objective-C and C++?
  40.  3   What exactly is it that makes Objective-C have `classes similar to
  41.      Smalltalk', and what are the resulting capabilities of Objective-C?
  42.  4   What are the `nice features' of Objective-C?
  43.  5   What are some of the common problems of the language and how can I work
  44.      around them?
  45.  6   What object encapsulation does Objective-C provide?
  46.  7   What are Protocols?
  47.  8   How can garbage collection be applied to Objective-C?
  48.  9   What is the difference between the NeXTSTEP, Stepstone and GNU CC
  49.      versions of Objective-C?
  50.  10  What written information concerning Objective-C is available?
  51.  11  What kind of Objective-C support is provided by Stepstone?
  52.  12  What kind of Objective-C support is provided by NeXT?
  53.  13  What kind of Objective-C support is provided by GNU?
  54.  14  What kind of Objective-C support is provided by BPG.
  55.  15  What are the newsgroups to read or mailing lists to subscribe to in order
  56.      to stay up-to-date on developments for GNU Objective-C?
  57.  16  Are there any FTP sites with Objective C code?  Where?
  58.  17  For more information...
  59.  
  60. (To find a question search on the question number starting a line.)
  61.  
  62. 1   What is Objective-C?
  63.  
  64.     Objective-C is an object oriented computer programming language.  It is
  65.     a superset of ANSI C and provides classes and message passing similar to
  66.     Smalltalk.
  67.  
  68.     Objective-C includes, when compared to C, a few more keywords and
  69.     constructs, a short description of which follows.  For a comlete example
  70.     of the application of the constructs, see part 3 of this FAQ.
  71.  
  72.     `@interface' declares a new class.  It indicates the name of the class,
  73.     the name of its superclass, the protocols adhered to (see Q7), the
  74.     layout of the instance variables (similar to the definition of a struct,
  75.     but including encapsulation information (see Q19)) and declares the
  76.     methods implemented by this class.  A class' interface usually resides
  77.     in a file called `<classname>.h'.
  78.  
  79.     `@implementation' defines a class.  The implementation is no more than a
  80.     collection of method definitions.  Without an implementation, a class
  81.     does not exist at run time.  The implementation of a class usually
  82.     resides in a file called `<classname>.m'.
  83.  
  84.     A `@category' is a named collection of method definitions which are
  85.     added to an existing class.  A category is not allowed to redefine a
  86.     class' existing methods.
  87.  
  88.     Objective-C includes the predefined type `id' which stands for a pointer
  89.     to some object.  Thus, `id obj;' declares a pointer to an object.  The
  90.     actual class of the object being pointed to is almost irrelevant, since
  91.     Objective-C does run-time type checking.
  92.  
  93.     `-message;' declares a method called `message'.  The `-' indicates that
  94.     the message can be sent to objects.  A `+' instead indicates the message
  95.     can be sent to class objects.  A method is similar to a function in that
  96.     it has arguments and a return value.  The default return type is `id'.
  97.     If a method has nothing useful to return, it returns `self', which is a
  98.     pointer to the object to which the message was sent (similar to `this'
  99.     in C++).
  100.  
  101.     [obj message], [obj message: arg1] and [obj message: arg1 with: arg2]
  102.     are examples of sending a message to the object OBJ with 0, 1 and 2
  103.     arguments respectively.  The name of the message is called the selector.
  104.     In this example, the selectors are: `message', `message:' and
  105.     `message:with:', respectively.
  106.  
  107. 3   What is the difference between Objective-C and C++?
  108.  
  109.     C++ follows the Simula 67 school of OO programming, where Objective-C
  110.     follows the Smalltalk school.  In C++ the static type of an object
  111.     determine whether you can send it a message, in Objective-C the dynamic
  112.     type determine it.  The Simula 67 school is safer, in that more errors
  113.     are detected at compile time.  The Smalltalk school is more flexible, as
  114.     some valid programs will execute correctly in Smalltalk, where they
  115.     would be rejected by Simula 67.
  116.  
  117.     Stepstone's Objective-C allows you to chose between the dynamic and
  118.     static binding, GNU and NeXT do not.  ANSI C++ allows you to use dynamic
  119.     binding, but discourages you from doing so.
  120.  
  121.     In many ways, the difference between C++ and Objective-C is more a
  122.     question of mindset than technical barriers.  Are you willing to offer
  123.     some flexibility for some safety?  Advocates for the Simula 67 school
  124.     claims that a well designed program doesn't need the extra flexibility
  125.     (a lie), while advocates for the Smalltalk school claims that the errors
  126.     are no problem in practice (another lie).
  127.  
  128.     Pragmatic differences between Objective-C and C++ include:
  129.  
  130.     C++ has operator overloading.  Some consider this to be `syntactic
  131.     sugar', and it is, but it can be a quite handy bit of sugar.
  132.  
  133.     C++ has multiple inheritance.  There are several ways to `get
  134.     around' this in Objective-C (see below).
  135.  
  136.     The added syntax and semantics of C++ is huge, while Objective-C is
  137.     C plus just a small number of new features.
  138.  
  139. 3   What exactly is it that makes Objective-C have `classes similar to
  140.     Smalltalk', and what are the resulting capabilities of Objective-C?
  141.  
  142.     Objective-C is as close to Smalltalk as a compiled language allows.  The
  143.     following is a list of the features `taken' from Smalltalk:
  144.  
  145.       * Objective-C is compiled---Smalltalk is only partially compiled.  The
  146.     current Objective-C implementations are all *much* faster than any
  147.     Smalltalk.  For example ParcPlace Smalltalk-80/4 is at least 3 times
  148.     slower than both the GNU and NeXT Objective-C's.  (This was measured
  149.     using the Self/Smalltalk benchmark suite available by FTP from
  150.     `self.stanford.edu:pub/Self-2.0.1'.)
  151.  
  152.     The big difference of course is that Objective-C does hybrid typing:
  153.     one can choose to represent a string as a `char *' or as an object,
  154.     whereas in Smalltalk, everything is an object.  This is a reason for
  155.     Objective-C being faster.  On the other hand, if every bit of
  156.     information in an Objective-C program would be represented by an
  157.     object, the program would probably run at a speed comparable to
  158.     Smalltalk and it would suffer from not having optimizations
  159.     performed on the basic classes, like Smalltalk can do.
  160.  
  161.       * You may add or delete methods and classes at runtime.  (On GNU and
  162.     NeXT one can load new classes and categories.  On Stepstone, which
  163.     lacks categories, the only way to add methods is to load a subclass
  164.     which then does a `+poseAs:' of the class to have methods added.
  165.     This is less flexible, but it sort-of does the trick of just adding
  166.     methods.)
  167.  
  168.       * Much of the syntax, i.e. Smalltalk uses method names like
  169.     `a:method:name:', as does Objective-C.  In Objective-C, the message
  170.     sending construct is enclosed in square brackets, like this:
  171.     `[anObject aMessage: arg]' whereas Smalltalk uses something like
  172.     `anObject aMessage: arg'.
  173.  
  174.       * The basic class hierarchy, that is, having class `Object' in the very
  175.     top, and letting most other classes inherit from it.
  176.  
  177.       * Most method names in class object is the same.  E.g. `respondsTo:'.
  178.     What is called `doesNotUnderstand:' in Smalltalk is called
  179.     `doesNotRecognize:' in Objective-C.
  180.  
  181.       * Smalltalk normally uses `doesNotUnderstand:' to implement
  182.     forwarding, delegation, proxies etc.  In Objective-C, these tasks
  183.     are different:
  184.  
  185.         forwarding/delegation: `forward::' can be overridden to
  186.         implement forwarding.  On the NeXT, `forward::' is even used
  187.         when passing to super.
  188.  
  189.         proxies: (Next) An instance of the NXProxy class forwards all
  190.         methods and their arguments to the remote object via Mach
  191.         messages.
  192.  
  193.       * Objective-C has meta classes mostly like Smalltalk.
  194.  
  195.       * Objective-C does not have class variables like Smalltalk, but pool
  196.     variables and globals are easily emulated via static variables.
  197.  
  198. 4   What are the `nice features' of Objective-C?
  199.  
  200.     The possibility to load class definitions and method definitions
  201.     (which extend a class) at run time.
  202.  
  203.     Objects are dynamically typed: Full type information (name and type
  204.     information of methods and instance variables and type information
  205.     of method arguments) is available at run time.  A prime example of
  206.     application of this feature is `-loadNibSection:owner:' method of
  207.     NEXTSTEP's Application class.
  208.  
  209.     Persistence [...].
  210.  
  211.     Remote objects [...].
  212.  
  213.     Delegation and target/action protocols [...].
  214.  
  215. 5   What are some of the common problems of the language and how can I work
  216.     around them?
  217.  
  218.     There are some `common problems':
  219.  
  220.     There is no innate multiple inheritance (of course some see this as
  221.     a benefit).
  222.  
  223.         To get around it you can create a compound class, i.e. a class
  224.         with instance variables that are ids of other objects.
  225.         Instances can specifically redirect messages to any combination
  226.         of the objects they are compounded of.  (It isn't *that* much of
  227.         a hassle and you have direct control over the inheritance
  228.         logistics.)  [Of course, this is not `getting around the problem
  229.         of not having multiple inheritance', but just modeling your
  230.         world slightly different in such a way that you don't need
  231.         multiple inheritance.]
  232.  
  233.         Protocols address the absence of multiple inheritance (MI) to
  234.         some extent: Technically, protocols are equivalent to MI for
  235.         purely "abstract" classes (see the answer on `Protocols' below).
  236.  
  237.         [How does Delegation fit in here?  Delegation is extending a
  238.         class' functionality in a way anticipated by the designer of
  239.         that class, without the need for subclassing.  One can, of
  240.         course, be the delegate of several objects of different
  241.         classes.  ]
  242.  
  243.     There are no class variables.
  244.  
  245.         You can get around this by defining a static variable in the
  246.         implementation file, and defining access methods for it.  This
  247.         is actually a more desirable way of designing a class hierarchy,
  248.         because subclasses shouldn't access superclass storage (this
  249.         would cause the subclass to break if the superclass was
  250.         reimplemented), and allows the subclass to override the storage
  251.         (if the classes access all their own variables via methods).
  252.  
  253.         [The question remains what the exact syntax of class variables
  254.         should be: Should a class object A be seen as an instance of its
  255.         meta-class MA, which has a super class MB being the meta-class
  256.         of A's super, B, and, as such, should A have seperate instances
  257.         of class variables defined for B?  Or not?]
  258.  
  259. 6   What object encapsulation does Objective-C provide?
  260.  
  261.     Object encapsulation can be discerned at two levels: encapsulation of
  262.     instance variables and of methods.  In Objective-C, the two are quite
  263.     different.
  264.  
  265.     Instance variables:
  266.  
  267.     The keywords @public, @private and @protected are provided to secure
  268.     instance variables from prying eyes to some extent.
  269.  
  270.         @public        anyone can access any instance variable.
  271.         @private    only methods belonging to this object's
  272.                 class or a subclass thereof have access to
  273.                 the instance variables.
  274.         @protected    only methods of this class may access the
  275.                 instance variables.  This excludes methods
  276.                 of a subclass.
  277.  
  278.     If not explicitly set, all instance variables are @protected.
  279.     Note: Instance variable encapsulation is enforced at compile-time.
  280.     At run-time, full typing information on all instance variables is
  281.     available, which sort-of makes all variables @public again.  This
  282.     information is for instance used to do instance variable lookup by
  283.     NeXTSTEP's `loadNibSection:owner:' method, making it completely
  284.     safe.
  285.  
  286.     Methods:
  287.  
  288.     To the Objective-C runtime, all methods are @public.  The programmer
  289.     can only show his/her intention of making specific methods not
  290.     public by not advertising them in the class' interface.  In
  291.     addition, so-called private methods can be put in a category with a
  292.     special name, like `secret' or `private'.
  293.  
  294.     However, these tricks do not help much if the method is declared
  295.     elsewhere, unless one reverts to indicating the object's type at
  296.     compile time.  And the runtime doesn't care about all this and any
  297.     programmer can easily circumvent the tricks described.  Thus, all
  298.     methods really are always @public.
  299.  
  300. 7   What are Protocols?
  301.  
  302.     Protocols are an addition to Objective-C that allows you to organize
  303.     related methods into groups that form high-level behaviors.  Protocols
  304.     are currently available in NeXTSTEP (since 3.0) and GCC (since 2.4).
  305.  
  306.     Protocols address the MI issue.  When you design an object with multiple
  307.     inheritance, you usually don't want *all* the features of both A and B,
  308.     you want feature set X from A and feature set Y from B.  If those
  309.     features are methods, then encapsulating X and Y in protocols allows you
  310.     to say exactly what you want in your new object.  Furthermore, if
  311.     someone changes objects A or B, that doesn't break your protocols or
  312.     your new object.  This does not address the question of new instance
  313.     variables from A or B, only methods.
  314.  
  315.     Protocols allow you to get type-checking features without sacrificing
  316.     dynamic binding.  You can say "any object which implements the messages
  317.     in Protocol Foo is OK for this use", which is usually what you want -
  318.     you're constraining the functionality, not the implementation or the
  319.     inheritance.
  320.  
  321.     Protocols give library builders a tool to identify sets of standard
  322.     protocols, independent of the class hierarchy.  Protocols provide
  323.     language support for the reuse of design, whereas classes support the
  324.     reuse of code.  Well designed protocols can help users of an application
  325.     framework when learning or designing new classes.  Here is a simple
  326.     protocol definition for archiving objects:
  327.  
  328.     @protocol Archiving
  329.     -read: (Stream *) stream;
  330.     -write: (Stream *) stream;
  331.     @end
  332.  
  333.     Once defined, protocols can be referenced in a class interface as
  334.     follows:
  335.  
  336.     /* MyClass inherits from Object and conforms to the
  337.        Archiving protocol.  */
  338.     @interface MyClass: Object <Archiving>
  339.     @end
  340.  
  341.     Unlike copying methods to/from other class interfaces, any incompatible
  342.     change made to the protocol will immediately be recognized by the
  343.     compiler (the next time the class is compiled).  Protocols also provide
  344.     better type checking without compromising the flexibility of untyped,
  345.     dynamically bound objects.
  346.  
  347.     MyClass *obj1 = [MyClass new];
  348.  
  349.     // OK: obj1 conforms to the Archiving protocol.
  350.     id <Archiving> obj2 = obj1;
  351.  
  352.     // Error: obj1 does not conform to the TargetAction protocol.
  353.     id <TargetAction> obj3 = obj1;
  354.  
  355.     Another use of protocols is that you can declare an ID to conform to
  356.     some protocol in order to help the compiler to resolve method name
  357.     conflicts:
  358.  
  359.     @interface Foo: Object
  360.     -(int) type;
  361.     @end
  362.  
  363.     @protocol Bar
  364.     -(const char *) type;
  365.     @end
  366.  
  367.     -blah1: d
  368.     {
  369.       id t = [d someMethod];
  370.       do_something_with ([t type]);
  371.     }
  372.  
  373.     -blah2: d
  374.     {
  375.       id <Bar> t = [d someMethod];
  376.       do_something_with ([t type]);
  377.     }
  378.  
  379.     In this example, there are two kinds of the `-type' method.  In the
  380.     method `-blah1:', the compiler doesn't know what return type to expect
  381.     from `[t type]', since it has seen both declarations of `-type'.  In
  382.     method `-blah2:', it knows that `t' conforms to the `Bar' protocol and
  383.     thus that `t' implements the `-type' method returning a `const char *'.
  384.  
  385. 8   How can garbage collection be applied to Objective-C?
  386.  
  387.     Currently, there are two implementations of garbage collection which can
  388.     be used in Objective-C programs [that I'm aware of].  Both methods use a
  389.     radically different approach.
  390.  
  391.     Garbage Collection in an Uncooperative Environment
  392.  
  393.         This implements garbage collection of chunks of memory obtained
  394.         through (its replacement of) malloc(3).  It works for C, C++,
  395.         Objective-C, etc.
  396.  
  397.         @article{bw88,
  398.         title="Garbage Collection in an Uncooperative Environment",
  399.         author="Hans J\"urgen Boehm and Mark Weiser",
  400.         journal="Software Practice and Experience",
  401.         pages=807-820,volume=18,number=9,month=sep,year=1988}
  402.  
  403.         Available as `iesd.auc.dk:/pub/ObjC/gc3.0.tar.z'.
  404.  
  405.     Garbage Collection through Class Abstraction
  406.  
  407.         This implements garbage collection through class abstraction
  408.         (and hence is Objective-C specific).  Anything to be garbage
  409.         collectible must be an object (instance of a subclass of a
  410.         specific class) or have such an object for a wrapper.
  411.  
  412.         Available as `ftp.es.ele.tue.nl:/pub/tiggr/tobjc.tar.gz'
  413.  
  414.     Apart from the obvious radical difference, another difference currently
  415.     is also noteworthy: The first method automatically protects objects
  416.     pointed to from the stack, bss or data segments; the second doesn't.
  417.  
  418. 9   What is the difference between the NeXTSTEP, Stepstone and GNU CC
  419.     versions of Objective-C?
  420.  
  421.     NeXT extended Stepstone's definition of the language to include new
  422.     constructs, such as protocols, which are touted to deal with some
  423.     aspects of multiple inheritance.
  424.  
  425.     Stepstone supports static _binding_, whereas NeXTSTEP and GNU CC don't.
  426.     All implementations do support static _typing_.
  427.  
  428.     Stepstone has a standard set of Foundation class libraries that work
  429.     across all supported machines, including NeXTSTEP.  NEXTSTEP comes with
  430.     its own set of libraries (called `kits').  GNU libobjc.a currently only
  431.     includes the `Object' class, though people are busy on a Real library
  432.     (see part two of this FAQ (The ClassWare Listing) for details).
  433.  
  434.     The `Object' class of all implementations differ.
  435.  
  436.     NeXTSTEP and GNU CC support Categories, Stepstone doesn't.
  437.  
  438.     NeXT has a native language debugger, Stepstone and GNU don't.  [This is
  439.     not really true, since NeXT's debugger is gdb, the GNU debugger, and
  440.     their extensions are available.  I think I've seen them on the Fall 1992
  441.     Edu CD.  Their extensions haven't appeared in the official FSF
  442.     distribution yet.]
  443.  
  444.     NeXTSTEP (from version 3.0) and GCC (from version 2.4) support protocols
  445.     and forward declarations of classes, Stepstone currently does not.
  446.  
  447. 10  What written information concerning Objective-C is available?
  448.  
  449.     Books:
  450.  
  451.     Brad J. Cox, Andrew J. Novobilski: Object Oriented Programming: An
  452.     Evolutionary Approach.  Addison-Wesley Publishing Company, Reading,
  453.     Massachusetts, 1991.  ISBN: 0-201-54834-8.
  454.  
  455.     abstract:    The first book on Objective-C.
  456.  
  457.  
  458.  
  459.     Lewis J. Pinson, Richard S. Wiener: Objective-C: Object Oriented
  460.     Programming Techniques.  Addison-Wesley Publishing Company, Reading,
  461.     Massachusetts, 1991. ISBN 0-201-50828-1.
  462.  
  463.     abstract:       Includes many examples, discusses both Stepstone's
  464.                     and NeXT's versions of Objective-C, and the
  465.                     differences between the two.
  466.  
  467.  
  468.     Timothy Budd: An Introduction to Object-Oriented Programming.
  469.     Addison-Wesley Publishing Company, Reading, Massachusetts.
  470.     ISBN 0-201-54709-0.
  471.  
  472.     abstract:       An intro to the topic of OOP, as well as a comparison
  473.                     of C++, Objective-C, Smalltalk, and Object Pascal
  474.  
  475.  
  476.     Simson L. Garfinkel, Michael K. Mahoney: NeXTSTEP Programming Step
  477.     ONE: Object-Oriented Applications.  TELOS/Springer-Verlag, 1993
  478.     (tel: (800)SPR-INGE).
  479.  
  480.     abstract:       It's updated to discuss NeXTSTEP 3.0 features
  481.                     (Project Builder, new development environment)
  482.                     but doesn't discuss 3DKit or DBKit.
  483.  
  484.  
  485.     NeXTSTEP Object Oriented Programming and the Objective C Language.
  486.     Addison-Wesley Publishing Company, Reading, Massachusetts, 1993.
  487.     ISBN 0-201-63251-9.
  488.  
  489.     abstract:     This book describes the Objective-C language as it
  490.             is implemented for NeXTSTEP.  While clearly targeted
  491.             at NeXTSTEP, it is a good first-read to get to learn
  492.             Objective-C.
  493.  
  494.     Articles
  495.  
  496.     `Why I need Objective-C', by Christopher Lozinski.
  497.     Journal of Object-Oriented Programming (JOOP) September 1991.
  498.  
  499.     Abstract:    This article discusses the differences between C++
  500.             and Objective-C in great detail and explains why
  501.             Objective-C is a better object oriented language.
  502.  
  503.     `Concurrent Object-Oriented C (cooC)', by Rajiv Trehan et. al.
  504.     ACM SIGPLAN Notices, Vol. 28, No 2, February 1993.
  505.  
  506.     Abstract:    This article discusses cooC, a language based on the
  507.             premise that an object not only provides an
  508.             encapsulation boundary but should also form a
  509.             process boundary.  cooC is a superset of
  510.             Objective-C.
  511.  
  512.     `Porting NEXTSTEP Applications to Microsoft Windows',
  513.     by Christopher Lozinski.  NEXTWORLD EXPO Conference Proceedings,
  514.     San Francisco, CA, May 25-27, 1993.  Updated version of the article
  515.     available from the author.  Contact lozinski@cup.portal.com
  516.  
  517.     Abstract:    This article describes how to develop Objective-C
  518.             applications for both Microsoft Windows and
  519.             NEXTSTEP.
  520.  
  521.     GNU Documentation
  522.  
  523.     The GNU project needs a free manual describing the Objective-C
  524.     language features.  Because of its cause, GNU cannot include the
  525.     non-free books in the GNU system, but the system needs to come with
  526.     documentation.
  527.  
  528.     Anyone who can write good documentation, please think about giving
  529.     it to the GNU project.  Contact rms@gnu.ai.mit.edu.
  530.  
  531. 11  What kind of Objective-C support is provided by Stepstone?
  532.  
  533.     Compilers and runtime for: Apple Macintosh (running Mac Programmers
  534.     Workshop), DEC Stations (ULTRIX), Data General AViiON (DG/UX),
  535.     HP9000/300,400,700,800 (HP-UX), IBM RISC System/6000 (AIX), MIPS,
  536.     NeXT, PC-AT (MS-DOS), PS/2 (AIX or OS/2), SCO/NCR UNIX SYS V, Sun 3, 4,
  537.     SPARCstations (SunOS or Solaris), Silicon Graphics INDIGO and VAX(VMS).
  538.     Other ports available by market demands or consulting services.
  539.  
  540.     ICpak101 Foundation Class Library is avaliable on all the above.
  541.     ICpak201 GUI Class Library is available on platforms that support
  542.     XWindows, Motif, OpenWindows and SunView.
  543.  
  544.        The Stepstone Corporation
  545.     (203) 426-1875 - (800) BUY-OBJEct voice / (203) 270-0106 fax
  546.     75 Glen Road
  547.     Sandy Hook, CT 06482
  548.  
  549. 12  What kind of Objective-C support is provided by NeXT?
  550.  
  551.     The Objective-C compiler and libraries come bundled with the
  552.     NEXTSTEP Developer CD.  The compiler essentially is GNU CC.  For
  553.     information on the Kits which are part of NEXTSTEP, see the
  554.     ClassWare Listing (part 2 of this FAQ).
  555.  
  556.     Products are:
  557.  
  558.         NEXTSTEP 3.2 for NeXT or Intel Computers
  559.  
  560.         ObjectWare Catalogue (lists available classes, both commercial
  561.         and those freely available).
  562.  
  563.     NeXT Computer, Inc.
  564.     900 Chesapeake Drive
  565.     Redwood City, CA 94063
  566.     tel: 800 848 NEXT
  567.     fax: 415 780 2801
  568.     email: NeXTanswers@NeXT.COM
  569.  
  570.     [Note: The World of NEXTSTEP is moving rapidly: HP-PA NEXTSTEP has
  571.     been demoed (available mid 94), Sparc NEXTSTEP is being worked on
  572.     (available late 94?).  OpenStep has been defined and made available.
  573.     This specification includes Objective-C, DPS, PDO, PB/IB.  OpenStep
  574.     will be available on Solaris (when?).]
  575.  
  576. 13  What kind of Objective-C support is provided by GNU?
  577.  
  578.     GNU CC, since version 2, comes with an Objective-C compiler.  The
  579.     current distribution of GNU CC (version 2.5.8) includes an Objective-C
  580.     compiler and runtime library.  The latter includes the `Object' class.
  581.     Some people are working on GNU libraries, see part two of this FAQ (The
  582.     ClassWare Listing) for details.
  583.  
  584.     If you haven't switched to a GNU CC as recent as 2.4 yet, here's one
  585.     reason to do so: The new runtime (as of 2.4) is more than 3 times as
  586.     fast as the old runtime (pre 2.4) w.r.t. method invocation.
  587.  
  588.     Free Software Foundation
  589.     675 Massachusetts Avenue
  590.     Cambridge, MA  02139
  591.     +1-617-876-3296
  592.  
  593.     General questions about the GNU Project can be asked to
  594.     gnu@prep.ai.mit.edu.
  595.  
  596.     GNU CC comes with an Objective-C compiler and runtime library which
  597.     includes the Object class.
  598.  
  599.     For information on how to order GNU software on tape, floppy or
  600.     cd-rom, check the file etc/DISTRIB in the GNU Emacs distribution, or
  601.     e-mail a request to: gnu@prep.ai.mit.edu
  602.  
  603.     GNU software is available from the following sites:
  604.  
  605.         Asia: utsun.s.u-tokyo.ac.jp:/ftpsync/prep,
  606.           ftp.cs.titech.ac.jp, cair.kaist.ac.kr:/pub/gnu
  607.         Australia: archie.oz.au:/gnu
  608.         Europe: ftp.informatik.tu-muenchen.de,
  609.           src.doc.ic.ac.uk:/gnu, nic.funet.fi:/pub/gnu,
  610.           ugle.unit.no, isy.liu.se, nic.switch.ch:/mirror/gnu,
  611.           archive.eu.net, ftp.informatik.rwth-aachen.de:/pub/gnu,
  612.           ftp.stacken.kth.se, ftp.win.tue.nl, ftp.denet.dk,
  613.           ftp.eunet.ch, irisa.irisa.fr:/pub/gnu
  614.         United States: wuarchive.wustl.edu, ftp.cs.widener.edu,
  615.           uxc.cso.uiuc.edu, col.hp.com:/mirrors/gnu,
  616.           gatekeeper.dec.com:/pub/GNU, ftp.uu.net:/systems/gnu
  617.  
  618. 14  What kind of Objective-C support is provided by BPG.
  619.  
  620.     BPG provides the Borland Extensions to Objective-C which allows the
  621.     Objective-C translator to be used with the Borland Compiler, and makes
  622.     it easy to develop Objective-C application for Microsoft Windows.
  623.  
  624.     BPG provides the Smalltalk Interface to Objective-C which makes
  625.     Objective-C objects look like Smalltalk Objects.  It can be used to
  626.     build Graphical User Interface on portable Objective-C objects, or to
  627.     sell Objective-C libraries to Smalltalk developers.
  628.  
  629.     BPG provides the Objective-C Message Bus which sends Objective-C messages
  630.     across heterogeneous computer platforms.
  631.  
  632.     BPG has a library of objects for modelling Objective-C programs.  A browser
  633.     application has been built on this library.  Other potential applications
  634.     include adding class variables to Objective-C, adding runtime information
  635.     about instance variables, and method argument types, generating object
  636.     versions, and eventually building a browser/translator.
  637.  
  638.     Christopher Lozinski
  639.     BPG
  640.     35032 Maidstone Court
  641.     Newark, CA 94560
  642.     Tel: (510) 795-6086
  643.     fax: (510) 795-8077
  644.     email: lozinski@cup.portal.com
  645.  
  646. 15  What are the newsgroups to read or mailing lists to subscribe to in order
  647.     to stay up-to-date on developments for GNU Objective-C?
  648.  
  649.     Read comp.lang.objective-c, which is bound to discuss current events.
  650.     There is also a mailing list, gnu-objc@gnu.ai.mit.edu, discussing this
  651.     very topic.  To subscribe to this list, send a mail with your request to
  652.     `gnu-objc-request@gnu.ai.mit.edu.'
  653.  
  654. 16  Are there any FTP sites with Objective C code?  Where?
  655.  
  656.     NeXTSTEP sites:
  657.     sonata.cc.purdue.edu    128.210.15.30
  658.     cs.orst.edu        128.193.32.1
  659.     ftp.stack.urc.tue.nl    131.155.2.71
  660.     ccrma-ftp.stanford.edu    36.49.0.93    (MusicKit)
  661.  
  662.     See also part 2 of this FAQ.
  663.  
  664. 17  For more information...
  665.  
  666.     See part 2 of this FAQ, Objective-C/classes a.k.a. the ClassWare
  667.     Listing, for an overview of available Objective-C classes and libraries.
  668.  
  669.     See part 3 of this FAQ, Objective-C/sample a.k.a. the Simple Sample
  670.     Program, for an example Objective-C program.
  671.  
  672. The early version of this FAQ was compiled by Bill Shirley, with the aid of
  673. many people.  The current version is being maintained by Tiggr, aided by a
  674. lot of people, including: Per Abrahamsen, Paul Burchard, Brad Cox,
  675. Christopher Lozinski, Mike Mahoney, Jon F. Rosen, Paul Sanchez, Lee Sailer,
  676. Bill Shirley, Subrata Sircar, Ted Slupesky, Richard Stallman and Kersten
  677. Krab Thorup,
  678.  
  679. Any text in between `[' and `]' is a comment.  Comments indicate `problems'
  680. with this FAQ, which should be solved.  Send your suggestions, additions,
  681. bug reports, comments and fixes to `tiggr@es.ele.tue.nl'.
  682.  
  683.     The information in this file comes AS IS, WITHOUT ANY WARRANTY.  You may
  684.     use the information contained in this file or distribute this file, as
  685.     long as you do not modify it, make money out of it or take the credits.
  686.